{include file="public/header" /}
<!-- 上传单图片头部 -->
{include file="public/upload_file_head" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>配置</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal" name="" id="preserve" method="post" action="/wechat_config">
                        <input type="hidden" name="id" value="{$edit.id?$edit.id:''}">
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">公众号二维码：</label>
                            <div class="input-group col-sm-2">
                                <input class="banner-file" type="hidden" id="data_photo" name="wechat_qrcode" value="{$edit.wechat_qrcode?$edit.wechat_qrcode:''}" />
                                <div id="fileList" class="uploader-list" style="float:right"></div>
                                <div id="imgPicker" style="float:left">选择图片</div>
                                <img id="img_data" height="100px" width="100px" style="float:left;margin-left: 50px;margin-top: -10px;" src="{$edit.wechat_qrcode?$edit.wechat_qrcode:''}" onerror="this.src='/static/admin/images/head_default.gif'"/>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">分享LOGO：</label>
                            <div class="input-group col-sm-2">
                                <input class="banner-file" type="hidden" id="data_photo1" name="share_logo" value="{$edit.share_logo?$edit.share_logo:''}" />
                                <div id="fileList1" class="uploader-list" style="float:right"></div>
                                <div id="imgPicker1" style="float:left">选择图片</div>
                                <img id="img_data1" height="100px" width="100px" style="float:left;margin-left: 50px;margin-top: -10px;" src="{$edit.share_logo?$edit.share_logo:''}" onerror="this.src='/static/admin/images/head_default.gif'"/>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">分享标题：</label>
                            <div class="input-group col-sm-2">
                                <input type="text" class="form-control" name="share_title" value="{$edit.share_title?$edit.share_title:''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">分享描述：</label>
                            <div class="input-group col-sm-2">
                                <textarea class="form-control" type="text" rows="3" name="share_describe">{$edit.share_describe?$edit.share_describe:''}</textarea>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">APP_ID：</label>
                            <div class="input-group col-sm-2">
                                <input type="text" class="form-control" name="app_id" required="" value="{$edit.app_id?$edit.app_id:''}" >
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>前往公众号平台查看 https://mp.weixin.qq.com/</span>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">APP_SECRET：</label>
                            <div class="input-group col-sm-2">
                                <input type="text" class="form-control" name="app_secret" required="" value="{$edit.app_secret?$edit.app_secret:''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">URL：</label>
                            <div class="input-group col-sm-2">
                                <input type="text" class="form-control" name="url" readonly value="{$edit.url?$edit.url:$edit.wx_url}">
								<span class="help-block m-b-none"><i class="fa fa-info-circle"></i>复制到公众号基本配置URL</span>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">TOKEN：</label>
                            <div class="input-group col-sm-2">
                                <input type="text" class="form-control" name="token" required="" value="{$edit.token?$edit.token:''}">
								<span class="help-block m-b-none"><i class="fa fa-info-circle"></i>公众号基本配置TOKEN一致</span>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-2 col-sm-offset-3">
                                <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>&nbsp;&nbsp;&nbsp;
                                <a class="btn btn-danger" href="javascript:history.go(-1);"><i class="fa fa-close"></i> 返回</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>
{include file="public/footer" /}
<!-- 上传单图片低部 -->
{include file="public/upload_file_footer" /}
<!-- 提交后的操作 -->
{include file="public/submit" /}
</body>
</html>

<!-- 上传图片初始化 -->
<script type="text/javascript">
    $(function(){
        upload_file('fileList','imgPicker','data_photo','img_data');
        upload_file('fileList1','imgPicker1','data_photo1','img_data1');
    });
</script>